<#--@ftlvariable name="posts" type ="java.util.List<nxu.entity.Post>"-->
<#--@ftlvariable name="comments" type ="java.util.List<nxu.entity.comment>"-->
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>文章内容</title>
</head>
<body>
    <h3>内容为</h3>
    <ul>
    <#list posts as post>
        <p>${post.content}</p>

        </br>
        <a href="/post/showComment?pid=${post.pid}">查看所有评论</a>
        </br>


        <form action="/post/addComment" method="post" autocomplete="off">
            <input name="pid" id="pid" type="hidden" value=${post.pid}>
            <input name="content" id="pid" type="text" placeholder="发表一条友善的评论吧">
            <input type="submit" value="发布">
        </form>

    </#list>

    </ul>


</body>
</html>